package com.leen.admin.service;



import com.leen.admin.dto.AdminDTO;
import com.leen.admin.dto.AdminLoginDTO;
import com.leen.admin.entity.Admin;
import com.leen.common.vo.ResponseVO;
import com.leen.common.vo.ResultVO;
import com.leen.security.domain.AdminLoginUserDetails;

import javax.servlet.http.HttpServletRequest;

/**
 * 类说明
 *
 * @author admin
 * @date 2021-05-12
 */
public interface AdminService extends CrudService<Admin,Integer> {

    /**
     * 根据账户查询管理员
     *
     * @return
     */
    ResultVO login(AdminLoginDTO adminLoginDTO, HttpServletRequest request);

    /**
     * 根据账户查询用户并且分配权限
     * @param account
     * @return
     */
    AdminLoginUserDetails findByAccount(String account);

    /**
     * 分页查询
     * @param adminDTO
     * @return
     */
    ResponseVO serach(AdminDTO adminDTO);
}
